/**
 * 
 */
package org.springperu.scd2010.portlet.controller;

import java.util.HashMap;
import java.util.Map;

import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

import org.springframework.web.portlet.ModelAndView;
import org.springframework.web.portlet.mvc.AbstractController;

/**
 * @author jlmanrique
 * 
 */
public class IngresoDiaController extends AbstractController {

	public static final String INGRESO_DIA = "IngresoDia";

	@Override
	protected ModelAndView handleRenderRequestInternal(RenderRequest request,
			RenderResponse response) throws Exception {
		
		Map<String,String> model = new HashMap<String, String>();
		model.put("usuario", request.getUserPrincipal().getName());
		return new ModelAndView(INGRESO_DIA,model);
	}

}
